library(TCGAbiolinks)
head(query.met)
query.met <- GDCquery(project = "TCGA-LUAD",
data.category = "DNA Methylation",
legacy = FALSE,
platform = c("Illumina Human Methylation 450"))
query.exp <- GDCquery(project = "TCGA-LUAD",
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification")
datmet <- GDCprepare(query.met)
datmet <- GDCprepare(query.met, directory=GDCdata)
datmet <- GDCprepare(query.met, directory='/Users/brian/Desktop/LUAD/GDCdata/TCGA-LUAD/harmonized/DNA_Methylation')
GDCdownload(query, method = "api")
datmet <- GDCprepare(query)
GDCdownload(query.met, method = "api")
GDCdownload(query.exp, method = "api")
datmet <- GDCprepare(query.exp)
datmet <- GDCprepare(query.exp, directory = 'example3')
datmet <- GDCprepare(query.exp, directory = 'GDCdata')
datmet <- GDCprepare(query.exp, directory = 'example3')
luad.exp <- GDCprepare(query = query.exp, save = TRUE, save.filename = "luadExp.rda")
luad.exp <- TCGAprepare_elmer(luad.exp,
save = TRUE,
platform = "IlluminaHiSeq_RNASeqV2")
geneAnnot <- txs()
library('ELMER')
library('Homo.sapiens')
library('org.Hs.eg.db')
library('GenomicRanges')
geneAnnot <- txs()
install.packages('Homo.sapiens')
install.packages('Homo.sapiens')
geneAnnot <- txs()
install.packages('ELMER')
install.packages("ELMER")
install.packages(GRanges)
install.packages(GRanges/RangedData)
library(GenomicRanges)
library(ELMER)
geneAnnot <- get.gene.annot()
geneAnnot <- txs()
geneAnnot<-txs()
library(parallel)
library(TCGAbiolinks)
library(SummarizedExperiment)
library(ELMER)
library(parallel)
geneAnnot<-txs()
geneAnnot <- get.gene.annot()
geneAnnot <- txs(tsSmooth(homo))
geneAnnot <- txs(TSS=list(upstream=0, downstream=0))
probe <- GRanges(seqnames = c("chr1","chr2")
range=IRanges(start = c(16058489,236417627), end= c(16058489,236417627)),
name= c("cg18108049","cg17125141"))
NearbyGenes <- GetNearGenes(geneNum=20,geneAnnot=geneAnnot,TRange=probe)
library(ELMER)
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
library(ELMER)
library(parallel)
geneAnnot <- txs()
library(ELMER)
library(parallel)
geneAnnot <- txs()
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
> library(oligoClasses)
Welcome to oligoClasses version 1.38.0
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
> library(oligoClasses)
No methods found in "RSQLite" for requests: dbGetQuery
Welcome to oligoClasses version 1.39.0
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
library(oligoClasses)
Welcome to oligoClasses version 1.38.0
sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
library(oligoClasses)
No methods found in "RSQLite" for requests: dbGetQuery
Welcome to oligoClasses version 1.39.0
sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 8 (jessie)
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
installing help indices
install.packages('RSQLite')
install.packages("RSQLite")
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
library('RSQLite')
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
source("https://bioconductor.org/biocLite.R")
biocLite("DBI")
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
library('DBI')
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
source("https://bioconductor.org/biocLite.R")
biocLite("Homo.sapiens")
library(DBI)
mydb <- dbConnect(RSQLite::SQLite(), "my-db.sqlite")
dbDisconnect(mydb)
unlink("my-db.sqlite")
mydb <- dbConnect(RSQLite::SQLite(), "")
dbDisconnect(mydb)
mydb <- dbConnect(RSQLite::SQLite(), "")
dbWriteTable(mydb, "mtcars", mtcars)
dbWriteTable(mydb, "iris", iris)
dbListTables(mydb)
dbGetQuery(mydb, 'SELECT * FROM mtcars LIMIT 5')
biocLite("Homo.sapiens")
biocLite("RSQLite")
library('RSQLite')
biocLite("Homo.sapiens")
library('homo.sapiens')
library("Homo.sapiens")
biocLite("ELMER")
geneAnnot <- txs()
library('ELMER')
library('Homo.sapiens')
geneAnnot <- txs()
uri <- 'http://www.uniprot.org/uniprot/?query='
geneAnnot <- txs()
geneAnnot <- GRanges()
geneAnnot$GENEID <- paste0("ID",geneAnnot$GENEID)
geneInfo <- promoters(geneAnnot,upstream = 0, downstream = 0)
probe <- get.feature.probe()
mee <- fetch.mee(meth = luad.met, exp = luad.exp, TCGA = TRUE,
probeInfo = probe, geneInfo = geneInfo)
head(geneAnnot)
geneAnnot <- txs()
geneAnnot <- tsx()
install.packages('ELMER')
install.packages("ELMER")
install.packages("ELMER")
install.packages("ELMER")
install.packages("Homo.sapiens")
source("http://bioconductor.org/biocLite.R")
?
biocLite
biocLite('Homo.sapiens')
biocLite('RSQLite')
library('RSQLite')
biocLite('Homo.sapiens')
cls <- columns(Homo.sapiens)
res <- select(Homo.sapiens, keys=ks, columns=cls, keytype=kt)
biocLite('TxDb.Hsapiens.UCSC.hg19.knownGene')
library('ELMER')
geneAnnot <- txs()
library(parallel)
geneAnnot <- txs()
biocLite('ELMER')
biocLite("ELMER")
biocLite("ELMER")
biocLite("ELMER")
biocLite("Homo.sapiens")
biocLite("ELMER",lip.path='/private/var/folders/_t/6q8tmd456kq5dc1fcsr0p5rr0000gp/T')
biocLite("ELMER",lip.path='/private/var/')
library("Bioc2017.TCGAbiolinks.ELMER")
install.packages('Bioc2017.TCGAbiolinks.ELMER')
library(TCGAbiolinks)
library(SummarizedExperiment)
library(DT)
library(dplyr)
source("https://bioconductor.org/biocLite.R")
biocLite("DT")
biocLite("dplyr")
query.exp <- GDCquery(project = "TCGA-LUSC",
data.category = "Transcriptome Profiling",
data.type = "Gene Expression Quantification",
workflow.type = "HTSeq - FPKM-UQ",
barcode = c("TCGA-34-5231-01","TCGA-77-7138-01"))
GDCdownload(query.exp)
exp <- GDCprepare(query = query.exp,
save = TRUE,
save.filename = "Exp_LUSC.rda",
summarizedExperiment = TRUE)
query.met <- GDCquery(project = "TCGA-LUSC",
data.category = "DNA Methylation",
platform = "Illumina Human Methylation 450",
barcode = c("TCGA-34-5231-01A-21D-1818-05","TCGA-77-7138-01A-41D-2043-05"))
GDCdownload(query.met)
met <- GDCprepare(query = query.met,
save = TRUE,
save.filename = "DNAmethylation_LUSC.rda",
summarizedExperiment = TRUE)
library(MultiAssayExperiment)
library(ELMER)
lusc.exp
lusc.met
distal.probes <- get.feature.probe(genome = "hg38", met.platform = "450K")
mae <- createMAE(exp = lusc.exp,
met = lusc.met,
save = TRUE,
linearize.exp = TRUE,
filter.probes = distal.probes,
save.filename = "mae_bioc2017.rda",
met.platform = "450K",
genome = "hg19",
TCGA = TRUE)
lusc.exp<- TCGAprepare_elmer(met,
platform = "HumanMethylation450",
save = TRUE,
met.na.cut = 0.2)
luad.met <- TCGAprepare_elmer(exp,
save = TRUE,
platform = "IlluminaHiSeq_RNASeqV2")
luad.exp<- TCGAprepare_elmer(exp,
save = TRUE,
platform = "IlluminaHiSeq_RNASeqV2")
lusc.met<- TCGAprepare_elmer(met,
platform = "HumanMethylation450",
save = TRUE,
met.na.cut = 0.2)
distal.probes <- get.feature.probe(genome = "hg38", met.platform = "450K")
mae <- createMAE(exp = lusc.exp,
met = lusc.met,
save = TRUE,
linearize.exp = TRUE,
filter.probes = distal.probes,
save.filename = "mae_bioc2017.rda",
met.platform = "450K",
genome = "hg19",
TCGA = TRUE)
colData(mae)[1:5,] %>%  as.data.frame %>% datatable(options = list(scrollX = TRUE))
sampleMap(mae)[1:5,] %>%  as.data.frame %>% datatable(options = list(scrollX = TRUE))
head(mae)
mae <- createMAE(exp = lusc.exp,
met = lusc.met,
save = TRUE,
linearize.exp = TRUE,
filter.probes = distal.probes,
save.filename = "mae_bioc2017.rda",
met.platform = "450K",
genome = "hg19",
TCGA = TRUE)
library(ELMER)
library(parallel)
geneAnnot <- txs()
remove('ELMER')
remove('ELMER',lib='.../downloads')
remove('ELMER',lib='.../downloads')
remove('rms')
remove('ggplot2')
library(ELMER)
library(parallel)
geneAnnot <- txs()
probe <- get.feature.probe()
library(parallel)
probe <- get.feature.probe()
library(ELMER)
probe <- get.feature.probe()
library(Homo.sapiens)
library(IlluminaHumanMethylation450kanno.ilmn12.hg19)
probe <- get.feature.probe()
library(IlluminaHumanMethylation450kanno.ilmn12.hg19)
library(Homo.sapiens)
probe <- get.feature.probe()
library(ELMER)
probe <- get.feature.probe()
geneAnnot <- txs()
head(geneAnnot)
write(geneAnnot,file='geneAnnot.csv')
probe <- get.feature.probe()
remove.packages('ELMER')
probe <- get.feature.probe()\
probe <- get.feature.probe()
setwd("/Users/brian/Desktop/1survivalsignature/result/Training/GSE50081")
options(stringsAsFactors=F)
library(e1071)
source('msvmRFE.R')
input<-read.csv("candidateexp.csv",header = T, sep = ",")
head(input)
input[1:5,1:5]
input<-input[,-1]
input[1:5,1:5]
svmRFE(input, k=10, halve.above=100)
svmRFE(input, k=10, halve.above=100)
svmRFE(input, k=10, halve.above=100)
1
2
3
4
4
svmRFE(input, k=10, halve.above=100)
input1<-input[,1:500]
svmRFE(input, k=10, halve.above=100)
svmRFE(input1, k=10, halve.above=100)
source('msvmRFE.R')
dim(input)
input[1:5,1:5]
svmRFE(input, k=10, halve.above=100)
svmRFE(input, k=10, halve.above=100)
exit
quite
1
svmRFE(input, k=10, halve.above=100)
